package cn.yj.quartz.job;

import cn.yj.quartz.QuartzJob;
import cn.yj.quartz.utils.JobInvokeUtil;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

/**
 * 不可并发执行
 * @author 永健
 * @since 2022-01-14 14:15
 */
@DisallowConcurrentExecution
public class DisConcurrentQuartzJob extends AbstractQuartzJob{

    @Override
    protected void doExecute(JobExecutionContext jobExecutionContext, QuartzJob quartzJob) throws Exception {
        JobInvokeUtil.invokeMethod(quartzJob);
    }
}
